package com.uniriho.lxr5002_service.ui;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;

import com.uniriho.lxr5002_service.R;
import com.uniriho.lxr5002_service.ServiceCrack;

/**
 * 后续按老化测试里面的修改定位流程
 */
public class GPSActivity extends Activity {

    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_main);
        initData();
    }

    @Override
    protected void onResume() {
        finish();
        super.onResume();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    @SuppressLint("MissingPermission")
    private void initData() {
        startService(new Intent(this, ServiceCrack.class));
    }
}
